//用户相关请求、
import { request } from "@/utils";
//1.登录请求

export function loginAPI(formData){
    return request({
        url:'/authorizations',
        method:'POST',
        data:formData
    })
}

//2.获取用户信息
export function getProfileAPI(){
    return request({
        url:'/user/profile',
        method:'GET',
    })
}

//更新用户信息
export function updateProfileAPI(formData){
    return request({
        url:'/user/profile',
        method:'PATCH',
        data:formData
    })
}

//更新头像,接口失效

export function updateImg(formData){
    return request({
        url:'/user/photo',
        method:'PATCH',
        data:formData,
    })
}

